#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(void)
{
	ll n;
	cin >> n;
	set<ll>s;
	for (int i = 0; i < n; i++)
	{
		ll x;
		cin >> x;
		s.insert(x);
	}
	for (auto i : s)
	{
		cout << i << " ";
	}
}